package com.molichuxing.gateway.bff.orders.services;

import com.molichuxing.framework.exception.BizException;
import com.molichuxing.framework.service.RootService;
import com.molichuxing.gateway.bff.orders.entity.request.create.OrderPayeeCreateVo;
import com.molichuxing.gateway.bff.orders.entity.request.modify.RenegeCancelModifyVo;
import com.molichuxing.gateway.bff.orders.entity.response.OrderPayeeVo;

/**
 * 订单退租相关bff
 * 
 * @author zoumingyu
 * @date 2020年2月27日
 *
 */
public interface OrderRenegeBffService extends RootService {

	/**
	 * 取消退租
	 *
	 * @param modifyVo
	 * @return
	 * @throws Exception
	 * @throws BizException
	 */
	Boolean modifyCancel(RenegeCancelModifyVo modifyVo) throws BizException, Exception;


	/**
	 * 查询订单退租人信息
	 *
	 * @param orderCode 订单号
	 * @param userId    用户id
	 * @return
	 */
	OrderPayeeVo getOrderPayee(Long orderCode, Integer userId) throws BizException, Exception;

	/**
	 * 订单退租退款人信息新增
	 *
	 * @param createVo
	 * @return
	 */
	Boolean createPayee(OrderPayeeCreateVo createVo) throws BizException, Exception;



}
